﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="CRM.Web.LogManage.LogList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch" >
        <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
            <tr>
                <td class="left">
                    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
                </td>
                <td class="middle">
                    <div class="pagetitle">
                        <div>
                            <asp:Label ID="lblTitle" runat="server" Text="系统日志列表"></asp:Label></div>
                    </div>
                </td>
                <td class="right">
                    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
                </td>
            </tr>
        </table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <asp:PlaceHolder runat="server" ID="phSearch">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                登录名:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtLOGINNAME" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                                TextMode="SingleLine"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                日志类型:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList ID="ddlLOGTYPEID" runat="server" CssClass="ddl">
                            </asp:DropDownList>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                创建时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div  class="nowrap">
                                </div>
                        </td>
                        <td class="content">
                        <div style="white-space: nowrap; width: 220px;">
                            <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" />
                        </div>
                        </td>
                    </tr>
                </table>
            </asp:PlaceHolder>  
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
                AllowSorting="True"  SortExpressionValue="LOGID"  
                SortDirectionValue="DESC" >
                <Columns>
			        <asp:TemplateField HeaderText="日志编号" SortExpression="LOGID">
                        <ItemTemplate>
                        <asp:HyperLink id="hlModifyLOGID" runat="server" NavigateUrl='<%# Eval("LOGID", ModifyUrl) %>' Text='<%# Bind("LOGID") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			        <asp:BoundField DataField="LOGTYPEID" HeaderText="日志类型"  SortExpression="LOGTYPEID" />
			        <asp:BoundField DataField="DEPARTMENTID" HeaderText="部门编号"  SortExpression="DEPARTMENTID" Visible="false" />
			        <asp:BoundField DataField="DEPARTMENTNAME" HeaderText="部门名称"  SortExpression="DEPARTMENTNAME" />
			        <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID" Visible="false"  />
			        <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人姓名"  SortExpression="CREATEPEOPLE" />
			        <asp:BoundField DataField="LOGINTIME" HeaderText="登录时间"  SortExpression="LOGINTIME" />
			        <asp:BoundField DataField="LOGINLENGTH" HeaderText="在线时长（秒）"  SortExpression="LOGINLENGTH" />
			        <asp:BoundField DataField="LOGINNAME" HeaderText="登录名"  SortExpression="LOGINNAME" />
			        <asp:BoundField DataField="PASSWORD" HeaderText="密码"  SortExpression="PASSWORD" Visible="false"  />
			        <asp:BoundField DataField="USERIP" HeaderText="操作员IP"  SortExpression="USERIP" />
			        <asp:BoundField DataField="USERMACADDRESS" HeaderText="Mac地址"  SortExpression="USERMACADDRESS" />
			        <asp:BoundField DataField="OPERATIONCONTENT" HeaderText="操作内容"  SortExpression="OPERATIONCONTENT" />
			        <asp:BoundField DataField="OPERATIONTITLE" HeaderText="操作标题"  SortExpression="OPERATIONTITLE" />
			        <asp:BoundField DataField="OPERATIONTYPE" HeaderText="操作类型"  SortExpression="OPERATIONTYPE" Visible="false"  />
			        <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" Visible="false" />
			        <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                        <itemtemplate>
                        <div style="white-space: nowrap;">
                        <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("LOGID", ModifyUrl) %>'>详细</asp:HyperLink>
                        <asp:LinkButton id="lbtnDelete" runat="server" Visible="false" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                        </div>
				        </itemtemplate>
                    </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
      
</div>
    </form>
</body>
</html>
